Skip to content

test: handle null stdio streams in spawnSyncAndAssert helper#64273

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
joyeecheung:fix-helper
Jul 7, 2026
Merged

test: handle null stdio streams in spawnSyncAndAssert helper#64273
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
joyeecheung:fix-helper

Conversation

@joyeecheung

@joyeecheung joyeecheung commented Jul 3, 2026

Copy link
Copy Markdown
Member

When a test uses 'pipe' for the stdio but the child process crashes, the stream will be null. In this case, don't try to stringify it and instead just log an empty string.

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jul 3, 2026
When a test  uses 'pipe' for the stdio but the child process crashes,
the stream will be null. In this case, don't try to stringify it and
instead log an empty string.

Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@joyeecheung joyeecheung added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 7, 2026
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 7, 2026
@nodejs-github-bot nodejs-github-bot merged commit 4a62a61 into nodejs:main Jul 7, 2026
66 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 4a62a61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants